<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<style type="text/css">
	.RegistrationMainLine{
		float:left;
	}
	
	.ChangeMainLine{
		float:right;
	}
</style>

<span class="RegistrationMainLine">
	<a href="SHome">Home</a>
	<c:if test="${empty user}">
		<a href="SRegister">Registration</a>&nbsp;
		<a href="SLogin">Login</a>&nbsp;
	</c:if>
</span>&nbsp;

<c:if test="${!empty user}">
	<span>	
		<a href="SCreateAlbum">Create album</a>&nbsp;
		<a href="SUploadPhoto">Upload photo</a>&nbsp;
		<a href="SAuthorsProfile?userId=${user.id}">${user.lastName} ${user.firstName}</a>&nbsp;
		<a href="SViewAlbum?albumId=${user.favorite.id}">Favorites</a>&nbsp;
	</span>
	<span class="ChangeMainLine">
		<a href="SChangePersonalData">Change personal data</a>&nbsp;
		<a href="SChangePassword">Change password</a>&nbsp;
		<a href="SChangeProfilePicture">Change profile picture</a>&nbsp;
		<a href="SLogout">Logout</a>&nbsp;
	</span>
</c:if>
<br />